using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._GeodatabaseAdministration
{
    /// <summary>
    /// <para>Update Portal Dataset Owner</para>
    /// <para>Updates the portal owner of a dataset to another user.</para>
    /// <para>将数据集的门户所有者更新为其他用户。</para>
    /// </summary>    
    [DisplayName("Update Portal Dataset Owner")]
    public class UpdatePortalDatasetOwner : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public UpdatePortalDatasetOwner()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_dataset">
        /// <para>Input Dataset</para>
        /// <para>The input dataset for which the portal owner will be updated.</para>
        /// <para>将为其更新门户所有者的输入数据集。</para>
        /// </param>
        /// <param name="_target_owner">
        /// <para>Target Owner</para>
        /// <para>The name of the portal user who will be the new portal owner of the dataset.</para>
        /// <para>将成为数据集新门户所有者的门户用户的名称。</para>
        /// </param>
        public UpdatePortalDatasetOwner(object _in_dataset, object _target_owner)
        {
            this._in_dataset = _in_dataset;
            this._target_owner = _target_owner;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Update Portal Dataset Owner";

        public override string CallName => "management.UpdatePortalDatasetOwner";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_dataset, _target_owner, _updated_dataset];

        /// <summary>
        /// <para>Input Dataset</para>
        /// <para>The input dataset for which the portal owner will be updated.</para>
        /// <para>将为其更新门户所有者的输入数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_dataset { get; set; }


        /// <summary>
        /// <para>Target Owner</para>
        /// <para>The name of the portal user who will be the new portal owner of the dataset.</para>
        /// <para>将成为数据集新门户所有者的门户用户的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target Owner")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _target_owner { get; set; }


        /// <summary>
        /// <para>Updated Dataset</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _updated_dataset { get; set; }


        public UpdatePortalDatasetOwner SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}